package Pattern.TemplatePattern.Program.program5;

public abstract class OrderProcessTemplate {
    public boolean isGift;
    public abstract void doSelect();
    public abstract void doPayment();
    public abstract void doDelivery();
    public void giftWrap(){
        System.out.println("Gift wrap successfull");
    }
    public void processOrder(boolean isGift) {
        doSelect();
        doPayment();
        if (isGift) {
            giftWrap();
        }else
            System.out.println("Failed!");
        doDelivery();
    }
}
